<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="author" content="常伟">
        <title>回答问题 - 知识问答</title>
        <link rel="stylesheet" href="/css/main.css">
    </head>
    <body>
        <h1>知识问答</h1>
        <section>
        <h3 qid="{{id}}">{{text}}</h3>
        <p>{{keyword}}，{{createUser.account}}， {{createTime | formatTime}}，{{ip}}</p>
        {{each answers as a i}}
            <section>
            <h4>{{a.text}}</h4>
            <p>{{a.createUser.account}}, {{a.createTime | formatTime}}, {{a.ip}}</p>
            </section>
        {{/each}}
        </section>
        <form action="#">
            <textarea name="text" cols="80" rows="10"></textarea><br>
            <input type="submit" value="提交回答">
        </form>
    </body>
    <script src="/libs/jquery.js"></script>
        <script src="/js/answer.js"></script>
</html>